.overlay {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 99;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    
    .content {
        background-color: white;
        color: black;
    }
}



// 1. 用于控制组件进场时的动画
.fade-enter {
    opacity: 0;
    .content {
        transform: translateY(100%);
    }
}

.fade-enter-active {
    opacity: 1;
    transition: opacity 0.3s ease-in;
    .content {
        transform: translateY(0);
        transition: transform 0.3s ease-in;
    }
}

// 2. 用于控制组件退场时的动画
.fade-exit {
    opacity: 1;
}

.fade-exit-active {
    opacity: 0;
    transition: opacity 0.3s ease-out;
    .content {
        transform: translateY(100%);
        transition: transform 0.3s ease-out;
    }
}